projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
12740e5
)
(Fx_popup_menu): Allow a frame instead of a window, in arg.
author
Richard M. Stallman
<rms@gnu.org>
Fri, 12 Mar 1993 10:15:36 +0000
(10:15 +0000)
committer
Richard M. Stallman
<rms@gnu.org>
Fri, 12 Mar 1993 10:15:36 +0000
(10:15 +0000)
Use Fcar, Fcdr when extracting from event, to check data types.
src/xmenu.c
patch
|
blob
|
history
diff --git
a/src/xmenu.c
b/src/xmenu.c
index aa8ec70a520edca8b811c62712504f36b8254044..4d86a6296b2ea4641db06166f38514bfc3cf046d 100644
(file)
--- a/
src/xmenu.c
+++ b/
src/xmenu.c
@@
-132,9
+132,9
@@
be the return value for that line (i.e. if it is selected).")
}
else
{
- tem =
EVENT_START (position);
- window =
POSN_WINDOW (tem);
- tem =
POSN_WINDOW_POSN (tem);
+ tem =
Fcar (Fcdr (position)); /* EVENT_START (position) */
+ window =
Fcar (tem); /* POSN_WINDOW (tem) */
+ tem =
Fcar (Fcdr (Fcdr (tem))); /* POSN_WINDOW_POSN (tem) */
x = Fcar (tem);
y = Fcdr (tem);
}